Optimal. Leaf size=169 \[ \frac {\sqrt {d+e x} \sqrt {a e+c d x} (c d f-a e g) \tanh ^{-1}\left (\frac {\sqrt {g} \sqrt {a e+c d x}}{\sqrt {c} \sqrt {d} \sqrt {f+g x}}\right )}{c^{3/2} d^{3/2} \sqrt {g} \sqrt {x \left (a e^2+c d^2\right )+a d e+c d e x^2}}+\frac {\sqrt {f+g x} \sqrt {x \left (a e^2+c d^2\right )+a d e+c d e x^2}}{c d \sqrt {d+e x}} \]
________________________________________________________________________________________
Rubi [A] time = 0.22, antiderivative size = 169, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 48, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.104, Rules used = {870, 891, 63, 217, 206} \begin {gather*} \frac {\sqrt {d+e x} \sqrt {a e+c d x} (c d f-a e g) \tanh ^{-1}\left (\frac {\sqrt {g} \sqrt {a e+c d x}}{\sqrt {c} \sqrt {d} \sqrt {f+g x}}\right )}{c^{3/2} d^{3/2} \sqrt {g} \sqrt {x \left (a e^2+c d^2\right )+a d e+c d e x^2}}+\frac {\sqrt {f+g x} \sqrt {x \left (a e^2+c d^2\right )+a d e+c d e x^2}}{c d \sqrt {d+e x}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 63
Rule 206
Rule 217
Rule 870
Rule 891
Rubi steps
\begin {align*} \int \frac {\sqrt {d+e x} \sqrt {f+g x}}{\sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}} \, dx &=\frac {\sqrt {f+g x} \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{c d \sqrt {d+e x}}+\frac {\left (c d e^2 f+c d^2 e g-e \left (c d^2+a e^2\right ) g\right ) \int \frac {\sqrt {d+e x}}{\sqrt {f+g x} \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}} \, dx}{2 c d e^2}\\ &=\frac {\sqrt {f+g x} \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{c d \sqrt {d+e x}}+\frac {\left (\left (c d e^2 f+c d^2 e g-e \left (c d^2+a e^2\right ) g\right ) \sqrt {a e+c d x} \sqrt {d+e x}\right ) \int \frac {1}{\sqrt {a e+c d x} \sqrt {f+g x}} \, dx}{2 c d e^2 \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}\\ &=\frac {\sqrt {f+g x} \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{c d \sqrt {d+e x}}+\frac {\left (\left (c d e^2 f+c d^2 e g-e \left (c d^2+a e^2\right ) g\right ) \sqrt {a e+c d x} \sqrt {d+e x}\right ) \operatorname {Subst}\left (\int \frac {1}{\sqrt {f-\frac {a e g}{c d}+\frac {g x^2}{c d}}} \, dx,x,\sqrt {a e+c d x}\right )}{c^2 d^2 e^2 \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}\\ &=\frac {\sqrt {f+g x} \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{c d \sqrt {d+e x}}+\frac {\left (\left (c d e^2 f+c d^2 e g-e \left (c d^2+a e^2\right ) g\right ) \sqrt {a e+c d x} \sqrt {d+e x}\right ) \operatorname {Subst}\left (\int \frac {1}{1-\frac {g x^2}{c d}} \, dx,x,\frac {\sqrt {a e+c d x}}{\sqrt {f+g x}}\right )}{c^2 d^2 e^2 \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}\\ &=\frac {\sqrt {f+g x} \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}{c d \sqrt {d+e x}}+\frac {(c d f-a e g) \sqrt {a e+c d x} \sqrt {d+e x} \tanh ^{-1}\left (\frac {\sqrt {g} \sqrt {a e+c d x}}{\sqrt {c} \sqrt {d} \sqrt {f+g x}}\right )}{c^{3/2} d^{3/2} \sqrt {g} \sqrt {a d e+\left (c d^2+a e^2\right ) x+c d e x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.19, size = 213, normalized size = 1.26 \begin {gather*} \frac {\sqrt {d+e x} \sqrt {f+g x} \sqrt {a e+c d x} \left (\sqrt {c} \sqrt {d} \sqrt {g} \sqrt {a e+c d x} \sqrt {\frac {c d (f+g x)}{c d f-a e g}}+\sqrt {c d} \sqrt {c d f-a e g} \sinh ^{-1}\left (\frac {\sqrt {c} \sqrt {d} \sqrt {g} \sqrt {a e+c d x}}{\sqrt {c d} \sqrt {c d f-a e g}}\right )\right )}{c^{3/2} d^{3/2} \sqrt {g} \sqrt {(d+e x) (a e+c d x)} \sqrt {\frac {c d (f+g x)}{c d f-a e g}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.71, size = 171, normalized size = 1.01 \begin {gather*} \frac {\sqrt {d+e x} \sqrt {a e g+c d g x} \left (\frac {\sqrt {f+g x} \sqrt {a e g+c d (f+g x)-c d f}}{c d \sqrt {g}}-\frac {\sqrt {c d} (c d f-a e g) \log \left (\sqrt {a e g+c d (f+g x)-c d f}-\sqrt {c d} \sqrt {f+g x}\right )}{c^2 d^2 \sqrt {g}}\right )}{\sqrt {g} \sqrt {\frac {(d g+e g x) (a e g+c d g x)}{g^2}}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 1.15, size = 521, normalized size = 3.08 \begin {gather*} \left [\frac {4 \, \sqrt {c d e x^{2} + a d e + {\left (c d^{2} + a e^{2}\right )} x} \sqrt {e x + d} \sqrt {g x + f} c d g - {\left (c d^{2} f - a d e g + {\left (c d e f - a e^{2} g\right )} x\right )} \sqrt {c d g} \log \left (-\frac {8 \, c^{2} d^{2} e g^{2} x^{3} + c^{2} d^{3} f^{2} + 6 \, a c d^{2} e f g + a^{2} d e^{2} g^{2} - 4 \, \sqrt {c d e x^{2} + a d e + {\left (c d^{2} + a e^{2}\right )} x} {\left (2 \, c d g x + c d f + a e g\right )} \sqrt {c d g} \sqrt {e x + d} \sqrt {g x + f} + 8 \, {\left (c^{2} d^{2} e f g + {\left (c^{2} d^{3} + a c d e^{2}\right )} g^{2}\right )} x^{2} + {\left (c^{2} d^{2} e f^{2} + 2 \, {\left (4 \, c^{2} d^{3} + 3 \, a c d e^{2}\right )} f g + {\left (8 \, a c d^{2} e + a^{2} e^{3}\right )} g^{2}\right )} x}{e x + d}\right )}{4 \, {\left (c^{2} d^{2} e g x + c^{2} d^{3} g\right )}}, \frac {2 \, \sqrt {c d e x^{2} + a d e + {\left (c d^{2} + a e^{2}\right )} x} \sqrt {e x + d} \sqrt {g x + f} c d g - {\left (c d^{2} f - a d e g + {\left (c d e f - a e^{2} g\right )} x\right )} \sqrt {-c d g} \arctan \left (\frac {2 \, \sqrt {c d e x^{2} + a d e + {\left (c d^{2} + a e^{2}\right )} x} \sqrt {-c d g} \sqrt {e x + d} \sqrt {g x + f}}{2 \, c d e g x^{2} + c d^{2} f + a d e g + {\left (c d e f + {\left (2 \, c d^{2} + a e^{2}\right )} g\right )} x}\right )}{2 \, {\left (c^{2} d^{2} e g x + c^{2} d^{3} g\right )}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-1)] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 201, normalized size = 1.19 \begin {gather*} -\frac {\sqrt {g x +f}\, \sqrt {c d e \,x^{2}+a \,e^{2} x +c \,d^{2} x +a d e}\, \left (a e g \ln \left (\frac {2 c d g x +a e g +c d f +2 \sqrt {\left (g x +f \right ) \left (c d x +a e \right )}\, \sqrt {c d g}}{2 \sqrt {c d g}}\right )-c d f \ln \left (\frac {2 c d g x +a e g +c d f +2 \sqrt {\left (g x +f \right ) \left (c d x +a e \right )}\, \sqrt {c d g}}{2 \sqrt {c d g}}\right )-2 \sqrt {\left (g x +f \right ) \left (c d x +a e \right )}\, \sqrt {c d g}\right )}{2 \sqrt {e x +d}\, \sqrt {\left (g x +f \right ) \left (c d x +a e \right )}\, \sqrt {c d g}\, c d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {e x + d} \sqrt {g x + f}}{\sqrt {c d e x^{2} + a d e + {\left (c d^{2} + a e^{2}\right )} x}}\,{d x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {\sqrt {f+g\,x}\,\sqrt {d+e\,x}}{\sqrt {c\,d\,e\,x^2+\left (c\,d^2+a\,e^2\right )\,x+a\,d\,e}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {d + e x} \sqrt {f + g x}}{\sqrt {\left (d + e x\right ) \left (a e + c d x\right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________